package com.wxzz.elearing.comment.service;

import com.wxzz.elearing.comment.dto.CurriculumCommentDto;
import com.wxzz.elearing.comment.dto.ImproveCommentDto;
import com.wxzz.elearing.comment.entity.CurriculumComment;
import com.wxzz.elearing.comment.entity.ImproveComment;
import com.wxzz.elearing.comment.vo.CurriculumStarVo;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface ICurriculumCommentService {

    /**
     * 新增评论
     *
     * @param comment
     * @return
     */
    ReturnVO saveComment(CurriculumComment comment);

    /**
     * 根据技能ID列出评论
     *
     * @return
     */
    ReturnVO<JgPageVo<List<CurriculumComment>>> listComment(CurriculumCommentDto improveCommentDto);

    /**
     * 根据课程id获取课程星级
     *
     * @return
     */
    ReturnVO<CurriculumStarVo> getstarByCurriculumId(CurriculumCommentDto improveCommentDto);

}
